Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Fix TypeError: '>=' not supported between instances of 'str' and 'int' in msvs_emulation.py #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

critical-bug
Copy link

Fixes a mere syntax problem.

When I build mozc, GYP gives the following error:

Traceback (most recent call last):
  File "C:\work\depot_tools\bootstrap-2@3_8_9_chromium_14_bin\python3\bin\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "C:\work\depot_tools\bootstrap-2@3_8_9_chromium_14_bin\python3\bin\lib\multiprocessing\pool.py", line 48, in mapstar
    return list(map(*args))
  File "C:\work\mozc\src\third_party\gyp\pylib\gyp\generator\ninja.py", line 2467, in CallGenerateOutputForConfig
    GenerateOutputForConfig(target_list, target_dicts, data, params, config_name)
  File "C:\work\mozc\src\third_party\gyp\pylib\gyp\generator\ninja.py", line 2405, in GenerateOutputForConfig
    target = writer.WriteSpec(spec, config_name, generator_flags)
  File "C:\work\mozc\src\third_party\gyp\pylib\gyp\generator\ninja.py", line 484, in WriteSpec
    link_deps = self.WriteSources(
  File "C:\work\mozc\src\third_party\gyp\pylib\gyp\generator\ninja.py", line 923, in WriteSources
    return self.WriteSourcesForArch(
  File "C:\work\mozc\src\third_party\gyp\pylib\gyp\generator\ninja.py", line 946, in WriteSourcesForArch
    asmflags = self.msvs_settings.GetAsmflags(config_name)
  File "C:\work\mozc\src\third_party\gyp\pylib\gyp\msvs_emulation.py", line 436, in GetAsmflags
    config = self._TargetConfig(config)
  File "C:\work\mozc\src\third_party\gyp\pylib\gyp\msvs_emulation.py", line 324, in _TargetConfig
    if self.vs_version.short_name >= 2015:
TypeError: '>=' not supported between instances of 'str' and 'int'

@google-cla
Copy link

google-cla bot commented May 5, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@google-cla
Copy link

google-cla bot commented May 6, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

Fix TypeError: '>=' not supported between instances of 'str' and 'int'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant